package com.specialized.pay.domain;

import java.math.BigDecimal;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.specialized.common.core.annotation.Excel;
import com.specialized.common.core.web.domain.BaseEntity;

/**
 * 交易流水对象 trade
 *
 * @author djh
 * @date 2024-07-23
 */
public class Trade extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
    private Long tradeId;

    /**
     * 商户订单号
     */
    @Excel(name = "订单号")
    private String orderCard;

    public String getOrderCard() {
        return orderCard;
    }

    public void setOrderCard(String orderCard) {
        this.orderCard = orderCard;
    }

    /**
     * 商户订单号
     */
    @Excel(name = "商户订单号")
    private String outtradeno;

    /**
     * 订单标题
     */
    @Excel(name = "订单标题")
    private String subject;

    /**
     * 订单总金额
     */
    @Excel(name = "订单总金额")
    private BigDecimal totalamount;

    /**
     * 产品码
     */
    @Excel(name = "产品码")
    private String productcode;

    /**
     * 三方交易流水号
     */
    @Excel(name = "三方交易流水号")
    private String tradeno;

    /**
     * 实付金额
     */
    @Excel(name = "实付金额")
    private BigDecimal paymoney;

    /**
     * 付款人
     */
    @Excel(name = "付款人")
    private String creatby;

    /**
     * 付款时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "付款时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date creattime;


    /**
     * 付款时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "付款时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date updatetime;

    /**
     * 类型:1.预约 2.实时 3.接机 4.送机 5.包车
     */
    @Excel(name = "类型:1.预约 2.实时 3.接机 4.送机 5.包车")
    private Long paytype;

    /**
     * 状态1.进行中 2.成功
     */
    @Excel(name = "状态1.进行中 2.成功")
    private Long status;

    public void setTradeId(Long tradeId) {
        this.tradeId = tradeId;
    }

    public Long getTradeId() {
        return tradeId;
    }

    public void setOuttradeno(String outtradeno) {
        this.outtradeno = outtradeno;
    }

    public String getOuttradeno() {
        return outtradeno;
    }

    public void setSubject(String subject) {
        this.subject = subject;
    }

    public String getSubject() {
        return subject;
    }

    public void setTotalamount(BigDecimal totalamount) {
        this.totalamount = totalamount;
    }

    public BigDecimal getTotalamount() {
        return totalamount;
    }

    public void setProductcode(String productcode) {
        this.productcode = productcode;
    }

    public String getProductcode() {
        return productcode;
    }

    public void setTradeno(String tradeno) {
        this.tradeno = tradeno;
    }

    public String getTradeno() {
        return tradeno;
    }

    public void setPaymoney(BigDecimal paymoney) {
        this.paymoney = paymoney;
    }

    public BigDecimal getPaymoney() {
        return paymoney;
    }

    public void setCreatby(String creatby) {
        this.creatby = creatby;
    }

    public String getCreatby() {
        return creatby;
    }

    public void setCreattime(Date creattime) {
        this.creattime = creattime;
    }

    public Date getCreattime() {
        return creattime;
    }

    public void setPaytype(Long paytype) {
        this.paytype = paytype;
    }

    public Date getUpdatetime() {
        return updatetime;
    }

    public void setUpdatetime(Date updatetime) {
        this.updatetime = updatetime;
    }

    public Long getPaytype() {
        return paytype;
    }

    public void setStatus(Long status) {
        this.status = status;
    }

    public Long getStatus() {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("tradeId", getTradeId())
                .append("outtradeno", getOuttradeno())
                .append("subject", getSubject())
                .append("totalamount", getTotalamount())
                .append("productcode", getProductcode())
                .append("tradeno", getTradeno())
                .append("paymoney", getPaymoney())
                .append("creatby", getCreatby())                .append("creattime", getCreattime())
                .append("updatetime", getUpdatetime())
                .append("paytype", getPaytype())
                .append("status", getStatus())
                .toString();
    }
}
